This example uses the addEventListener() method to attach a "toggle" event to a details element.

Open the details.

Copyright 1999-2014.

- by Refsnes Data. All Rights Reserved.

All content and graphics on this web site are the property of the company Refsnes Data.

Note: The details element and the toggle event is currently only supported in Chrome, Safari 6+, and Opera 15+.